package com.youlu.campus.service.ranking;

import com.youlu.campus.entity.UniversityActivityTaskRanking;
import com.youlu.campus.entity.UserPO;
import com.youlu.campus.entity.VO.RankingListQueryVO;
import com.youlu.campus.entity.VO.req.RankingListResVO;
import com.youlu.campus.entity.VO.req.UniversityRankQueryVO;
import org.springframework.data.domain.Page;

public interface UniversityActivityRankingService {

    RankingListResVO getUniversityRanking(RankingListQueryVO req, UserPO userPO);

    void updateQuantity(UserPO userPO, String activityId, String universityId, Integer q);

    /**
     * 获取大学排行榜Key
     *
     * @param activityId
     * @return
     */
    String getUniversityRankKey(String activityId);

    Page<UniversityActivityTaskRanking> list(UniversityRankQueryVO req);

    UniversityActivityTaskRanking findOne(String id);

    boolean update(UniversityActivityTaskRanking req);

    boolean delete(String id);
}
